package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.ClassQueryParam;
import com.itheima.pojo.Clazz;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ClassMapper extends BaseMapper<Clazz> {
//     List<Clazz> list(ClassQueryParam classQueryParam);
//
//     @Select("select * from clazz")
//     List<Clazz> listAll();
//
//     @Insert("insert into clazz(name, room, begin_date, end_date, master_id, subject, create_time, update_time) " +
//             "values ( #{name},#{room},#{beginDate},#{endDate},#{masterId},#{subject},#{createTime},#{updateTime}) ")
//     void add(Clazz clazz);
//     @Select("select * from clazz where id = #{id}")
//     Clazz findById(Integer id);
//     @Delete("delete from clazz where id = #{id}")
//     void delById(Integer id);
//     @Update("update clazz set name = #{name},room = #{room}, begin_date =#{beginDate}," +
//             " end_date =#{endDate}, master_id=#{masterId}, subject =#{subject},  update_time = #{updateTime} where id = #{id}")
//     void updateById(Clazz clazz);
}
